package com.design.StateMode.simpleDemo;

/**
 * @Description: Context相当于车辆
 * @Author: LiHaiChao
 * @Date: 2022/1/13 14:08:42
 * @Version: 1.0
 */
public class Context {

    private State state;

    public void setState(State state) {
        this.state = state;
        System.out.println("车辆动作...");
        state.handler();
    }
}
